// 权限 - 路由守卫
import router from './index'
import store from '@/store'
router.beforeEach((to, from, next) => {
  if (store.state.token && to.path === '/login') {
    next(false) // 禁止跳转
  } else {
    next()
  }
})
